<?php
/**
 * common model file Created by PhpStorm.
 * User: wumengmeng
 * Date: 2019/09/03
 * Time: 15:20
 */

namespace HiCommon\Model;


class ShopModifyImg extends Base
{

    protected $table = 'shop_modify_img';

    protected $guarded = [];

    //public $timestamps = false;



    /**
     * 获取图片可用链接
     *
     * @return array
     * @author wumengmeng <wu_mengmeng@foxmail.com>
     */
    public function getImgAttribute($value)
    {
        $arr_data = [
            'src'=>$value,
            'full_src'=>oss_full_url($value),
        ];
        return $arr_data;
    }



}